import App from '../App.vue'
import {createApp} from 'vue';
import state from './states';
import getters from './getters';
import actions from './actions';
import {createStore} from 'vuex';
import mutations from './mutations';

//创建VueX对象
const store = createStore({
    // 异步方法
    actions,
    // get方法
    getters,
    // 修改状态操作
    mutations,
    // 存放状态
    state
});

createApp(App).use(store);

export default store
